#ifndef _THREAD_H_
#define _THREAD_H_

#include <pthread.h>

// 函数声明
void* doTask(void *task_arg);
class ThreadPool;

class Thread
{
public:
    Thread(ThreadPool*);
	
    void start();
private:
    pthread_t tid_;
	
    // 指向池的指针
    ThreadPool *pool_;
};

#endif